dhcpv4: dhcpv4_lease() - convert to switch statement
authorDavid Härdeman <[email protected]>
Wed, 8 Oct 2025 15:23:46 +0000 (17:23 +0200)
committerÁlvaro Fernández Rojas <[email protected]>
Sat, 25 Oct 2025 15:09:24 +0000 (17:09 +0200)
commit48487aedead85b87fe4b209e5ca199159337ba23
treecfb0e62bee3eb8709f0c0400eaf95f26663f2205
parent3ad54baa4adc0d6d102ccdc82f8b1f7439059f6e
dhcpv4: dhcpv4_lease() - convert to switch statement

And move the simple cases first, also bail if there's nothing to do.

Signed-off-by: David Härdeman <[email protected]>
Link: https://github.com/openwrt/odhcpd/pull/286
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
src/dhcpv4.c